<?php
	if($_COOKIE['admin_id'] == false){
		header("Location:login.php");
	}
	require_once 'config/common.php';

	$group_id=$_COOKIE['group_id'];				//管理员权限组
		
	//权限组
	$sql='admin_group_right gr left join admin_right r on gr.right_id=r.id 
		where gr.group_id="'.$group_id.'"';
	$key='gr.group_id,r.*';
	$_rights=$commonc->getList($sql,'',$key);
	$_rights=$_rights['result'];
	
	
?>